package com.zhixue.content.feignclient;

import com.zhixue.content.feignclient.po.CourseIndex;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Auther: 李 力
 * @Date: 2025/5/8
 * @Description: com.zhixue.content.feignclient
 * @version: 1.0
 */
@FeignClient(value = "search-api", path = "/search", fallbackFactory = SearchServiceClientFallbackFactory.class)
public interface SearchServiceClient {
    @PostMapping("/index/course")
    public Boolean add(@RequestBody CourseIndex courseIndex);
}
